Skip to content

Add extra data and fix resolution - #42

Merged
pombredanne merged 8 commits into
mainfrom
fix
Jul 29, 2022
Merged

Add extra data and fix resolution#42
pombredanne merged 8 commits into
mainfrom
fix

Conversation

@TG1999

@TG1999 TG1999 commented Jul 21, 2022

Copy link
Copy Markdown
Contributor

Signed-off-by: Tushar Goel tushar.goel.dav@gmail.com

@TG1999
TG1999 requested a review from pombredanne July 21, 2022 18:49
@TG1999
TG1999 force-pushed the fix branch 3 times, most recently from 83ce6f3 to 7749189 Compare July 22, 2022 09:21
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
@TG1999

TG1999 commented Jul 26, 2022

Copy link
Copy Markdown
Contributor Author

Generate requirements only from a sdist if the said package don't generate any requirements from wheels, while generating requirements from a sdist generate requirements from a requirements.txt file if nothing can't be generated from setup.cfg and setup.py and requirements.txt was used in either setup.py or setup.cfg

Generate requirements only from a sdist if the said package don't generate any requirements from wheels, while generating requirements from a sdist generate requirements from a requirements.txt file if nothing can't be generated from setup.cfg and setup.py and requirements.txt was used in either setup.py or setup.cfg

Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
Comment thread src/python_inspector/resolution.py Outdated

@pombredanne pombredanne left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here are a few minor nit pickings for your consideration.

Comment thread src/python_inspector/resolution.py Outdated
Comment thread src/python_inspector/resolution.py Outdated
Comment thread src/python_inspector/resolution.py Outdated
Comment thread src/python_inspector/resolution.py Outdated
Comment thread src/python_inspector/resolution.py Outdated
Comment thread src/python_inspector/resolution.py Outdated
Comment thread src/python_inspector/resolution.py Outdated
Comment thread src/python_inspector/resolution.py Outdated
Comment thread src/python_inspector/resolution.py Outdated
Comment thread src/python_inspector/resolution.py Outdated
Comment thread src/python_inspector/resolve_cli.py Outdated
@TG1999 TG1999 mentioned this pull request Jul 27, 2022
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
@TG1999
TG1999 requested a review from pombredanne July 27, 2022 10:54
TG1999 added 2 commits July 28, 2022 20:45
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
Comment thread src/python_inspector/resolution.py Outdated
Comment thread src/python_inspector/resolution.py Outdated
Comment thread src/python_inspector/resolution.py
Comment thread src/python_inspector/resolution.py Outdated
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
Comment thread src/_packagedcode/pypi.py Outdated
Comment thread src/python_inspector/resolution.py
Comment thread src/python_inspector/resolution.py Outdated
Comment thread src/python_inspector/resolution.py Outdated
"""
if not os.path.exists(location):
return []
deps = list(handler.parse(location))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
deps = list(handler.parse(location))
# TODO: consider using packagedcode.recognize instead for
# more generic and reusable approach
deps = list(handler.parse(location))

Comment thread src/python_inspector/resolution.py
Comment thread src/python_inspector/resolution.py
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>

@pombredanne pombredanne left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ❤️ please merge!

@pombredanne

Copy link
Copy Markdown
Member

I will let you fix the failures I have introduced... likely from formatting

Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
@pombredanne

Copy link
Copy Markdown
Member

All green... merging!

@pombredanne
pombredanne merged commit a401588 into main Jul 29, 2022
@pombredanne
pombredanne deleted the fix branch July 29, 2022 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants